package com.example.springinit2.service.impl;

import com.example.springinit2.entity.BIRTH_NOTICE;
import com.example.springinit2.service.BirthService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


@Service
public class BirthServiceImpl implements BirthService {

  @Override
  public List<BIRTH_NOTICE> findBirthList() {
    List<BIRTH_NOTICE> list = new ArrayList<>();
    BIRTH_NOTICE birth_notice = new BIRTH_NOTICE();
    birth_notice.setID(1L);
    birth_notice.setPINYIN("zhangsan");
    birth_notice.setNAME("张三");
    birth_notice.setNEW_BIRTH(new Date());
    birth_notice.setOLD_BIRTH("20011203");
    birth_notice.setEMAIL("lzxy12923@163.com");
    birth_notice.setPHONE("17191073042");
    list.add(birth_notice);
    return list;
  }
}
